home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / mc51bugs / q32210 < prev    next >
Text File  |  1988-07-20  |  1KB  |  46 lines

  1. Q32210 Internal Compiler Error: ctypes.c 1.107, Line 474
  2. C Compiler
  3. 5.10   | 5.10
  4. MS-DOS | OS/2
  5.  
  6. Summary:
  7.    When the code fragment below is compiled with the default compiler
  8. options, it generates the following error:
  9.  
  10.      fatal error C1001: Internal Compiler Error
  11.      (compiler file '@(#)ctypes.c:1.107', line 474)
  12.         Contact Microsoft Technical Support
  13.  
  14.    The return type of the function is a pointer to a structure; upon
  15. assignment to the "a" variable, the indirection (*) is not necessary.
  16.    To work around this problem, remove the indirection operator from
  17. the right-hand side of the assignment statement.
  18.    Microsoft has confirmed this to be a problem in Version 5.10 of the
  19. C compiler. We are researching this problem and will post new
  20. information as it becomes available.
  21.  
  22. More Information:
  23.    The following code demonstrates the problem:
  24.  
  25. typedef struct list
  26.         {
  27.         void *dummy;        /* dumb types 2 are necessary */
  28.         void *dummy2;
  29.  
  30.         struct list *next;
  31.         } LIST;
  32.  
  33. LIST * ret_ptr_type_LIST(void);
  34.  
  35. void main(void);
  36. void main()
  37. {
  38. void * a;
  39. a = *ret_ptr_type_LIST();
  40. }
  41.  
  42.  
  43.  
  44. Keywords:  buglist5.10
  45. Updated  88/07/21 03:19
  46.